home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00214_Script_GESTION_FLASH_AUDIO_DIRECTOR
< prev
next >
Wrap
Text File
|
2004-12-05
|
4KB
|
88 lines
global gze_Label
property p_cettePiste, p_Nodepiste,p_SWF,pEscape,pdeclencheur,pnomSon,p_aiguillage, pNopisteSon,p_start
property pNbFrames
----------------------------------
on getPropertyDescriptionList me
return [\
#pdeclencheur:[#comment:"Θchappement α la fin du :",#format:#string,#range:["SON","SWF","Le plus long"],#default: "Le plus long"],\
#pnomSon:[#comment:"nom du son α jouer:",#format:#string,#default: EMPTY],\
#pNopisteSon:[#comment:"No piste son:",#format:#integer,#range:[2,3,4,5,6,7,8],#default: 3],\
#p_aiguillage:[#comment:"branchement α la sortie :",#format:#string,#range:["frame suivante","marker suivant"],#default: "frame suivante"]\
]
end
----------------------------------------
on beginsprite me
p_Nodepiste = me.spriteNum
p_cettePiste = sprite(p_Nodepiste)
p_SWF = p_cettePiste.member
p_start = the frame
pEscape = p_cettePiste.endFrame
pNbFrames = p_SWF.framecount
gze_Label = the frameLabel
end
-----------------------------------
on exitFrame me
the soundKeepDevice = 0
if the frame = p_start then----------------sur la premiΦre frame du swf
if pnomSon <> EMPTY then
joueSon(pnomSon,pNopisteSon)------------------on lance le son choisi sur la piste choisie
end if
else
if the mouseDown then
coupeson(pNopisteSon)
niveauSon()
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
end if
if the frame = pEscape then----------------sur la derniΦre frame du swf
case(pdeclencheur) of
"SON":-------------------------------------si l'Θchappement se fait α la fin du son
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
niveauSon()
aiguillage(p_aiguillage)---------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
"SWF":-------------------------------------si l'Θchappement se fait α la fin du swf
if p_cettePiste.frame = pNbFrames then----------------si le swf est arrivΘ α son terme
coupeson(pNopisteSon)
niveauSon()
aiguillage(p_aiguillage)---------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
"Le plus long":-------------------------------------si l'Θchappement est calΘ sur le mΘdia le plus long
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
if p_cettePiste.frame = pNbFrames then----------------et si le swf est arrivΘ α son terme
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
else-----------------------------------------------si le swf est arrivΘ α son terme
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
niveauSon()
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
end if
end case
end if
end if
end
---------------------------------------
on aiguillage ZUT
case(ZUT) of
"frame suivante":------------------------------branchement α la frame suivante
go the frame +1
"marker suivant":------------------------------branchement au marker suivant
go marker(+1)
end case
end
------------------------------------
on mouseUp
coupeson(pNopisteSon)
niveauSon()
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
end
------------